﻿<%@ Page Title="" Language="C#" MasterPageFile="~/iCreateMasterPage.master" AutoEventWireup="true" CodeBehind="DashboardB.aspx.cs" Inherits="iCreatePortal.WebForm14" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title>iCreate Portal - Dashboard</title>
    <style type="text/css">
        .style2
        {
            margin-left: 80px;
        }
        .style3
        {
            margin-left: 80px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PageContentPlaceHolder" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <table class="iCreatePage">
        <tr>
            <td class="iCreatePageLeftPanel" valign="top">
            &nbsp;<asp:Label ID="Label2" runat="server" Text="Projects" CssClass="iCreateContentLabel" 
                      ></asp:Label><br />
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
        <ContentTemplate>
            <asp:GridView ID="ProjectStatusGridView" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" BorderStyle="None" 
                EmptyDataText="&lt;No data to display&gt;" GridLines="None" Width="100%" 
                DataSourceID="XmlDataSource1" 
                onrowcommand="ProjectStatusGridView_RowCommand" >
                <Columns>
                    <asp:CommandField EditText="Manage" InsertVisible="False" 
                        ShowCancelButton="False" ShowEditButton="True" >
                    <HeaderStyle CssClass="iCreateContentLabel" Width="25px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="25px" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="Project">
                    <HeaderStyle CssClass="iCreateContentLabel" />
                    <ItemStyle CssClass="iCreateHeaderLabel" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Next DM">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="60px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="60px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Next PM">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="60px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="60px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Cost(Budgeted)">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="100px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Cost(Actual)">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="100px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Revenue(Expected)">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="100px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Revenue(Actual)">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="100px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="100px" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="GM(%)">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="50px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="50px" />
                    </asp:BoundField>
                </Columns>
                <SelectedRowStyle Font-Bold="True" Font-Italic="True" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
            <br /><br />
                &nbsp;<asp:Label ID="Label1" runat="server" Text="My Tasks" CssClass="iCreateContentLabel" 
                      ></asp:Label><br />
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="TasksGridView" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" BorderStyle="None" 
                EmptyDataText="&lt;No data to display&gt;" GridLines="None" Width="100%" 
                DataSourceID="XmlDataSource1" onrowcommand="TasksGridView_RowCommand" >
                <Columns>
                    <asp:CommandField EditText="Show" InsertVisible="False" 
                        ShowCancelButton="False" ShowEditButton="True" >
                    <HeaderStyle CssClass="iCreateContentLabel" Width="25px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="25px" />
                    </asp:CommandField>
                    <asp:BoundField HeaderText="Task">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="100%" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="100%" />
                    </asp:BoundField>
                    <asp:BoundField HeaderText="Date">
                    <HeaderStyle CssClass="iCreateContentLabel" Width="60px" />
                    <ItemStyle CssClass="iCreateHeaderLabel" Width="60px" />
                    </asp:BoundField>
                </Columns>
                <SelectedRowStyle Font-Bold="True" Font-Italic="True" />
            </asp:GridView>
        </ContentTemplate>
    </asp:UpdatePanel>
    
    <asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="~/App_Data/MyTasks.xml"></asp:XmlDataSource>
    </td>
            <td class="iCreatePageRightPanel" valign="top">
                <table align="left" cellpadding="0" cellspacing="0">
                    <tr>
                        <td>
                            <asp:HyperLink ID="HyperLink1" runat="server" CssClass="iCreateLinkLabel" 
                                NavigateUrl="~/ProjectMIS.aspx">&nbsp;Project MIS</asp:HyperLink>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:HyperLink ID="HyperLink2" runat="server" CssClass="iCreateLinkLabel" 
                                NavigateUrl="~/ProjectNew.aspx">&nbsp;New Project</asp:HyperLink>
                        </td>
                    </tr>
                </table>
                
            </td>
        </tr>
    </table>
</asp:Content>
